package com.ruoyi.registration.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.registration.mapper.ResourceApplyMapper;
import com.ruoyi.registration.domain.ResourceApply;
import com.ruoyi.registration.service.IResourceApplyService;

/**
 * 资源申请登记Service业务层处理
 * 
 * @author Marissa
 * @date 2023-12-09
 */
@Service
public class ResourceApplyServiceImpl implements IResourceApplyService 
{
    @Autowired
    private ResourceApplyMapper resourceApplyMapper;

    /**
     * 查询资源申请登记
     * 
     * @param rId 资源申请登记主键
     * @return 资源申请登记
     */
    @Override
    public ResourceApply selectResourceApplyByRId(Long rId)
    {
        return resourceApplyMapper.selectResourceApplyByRId(rId);
    }

    /**
     * 查询资源申请登记列表
     * 
     * @param resourceApply 资源申请登记
     * @return 资源申请登记
     */
    @Override
    public List<ResourceApply> selectResourceApplyList(ResourceApply resourceApply)
    {
        return resourceApplyMapper.selectResourceApplyList(resourceApply);
    }

    /**
     * 新增资源申请登记
     * 
     * @param resourceApply 资源申请登记
     * @return 结果
     */
    @Override
    public int insertResourceApply(ResourceApply resourceApply)
    {
        return resourceApplyMapper.insertResourceApply(resourceApply);
    }

    /**
     * 修改资源申请登记
     * 
     * @param resourceApply 资源申请登记
     * @return 结果
     */
    @Override
    public int updateResourceApply(ResourceApply resourceApply)
    {
        return resourceApplyMapper.updateResourceApply(resourceApply);
    }

    /**
     * 批量删除资源申请登记
     * 
     * @param rIds 需要删除的资源申请登记主键
     * @return 结果
     */
    @Override
    public int deleteResourceApplyByRIds(Long[] rIds)
    {
        return resourceApplyMapper.deleteResourceApplyByRIds(rIds);
    }

    /**
     * 删除资源申请登记信息
     * 
     * @param rId 资源申请登记主键
     * @return 结果
     */
    @Override
    public int deleteResourceApplyByRId(Long rId)
    {
        return resourceApplyMapper.deleteResourceApplyByRId(rId);
    }
}
